package day10;

import day6.FanDaodoor;

public interface Fly {
    void fly();
}
class Bat implements Fly {

    @Override
    public void fly() {
        System.out.println("蝙蝠能飞行");
    }
}
class AirPlane implements Fly{

    @Override
    public void fly() {
        System.out.println("飞机在天上高速飞行");
    }
}
class Kite implements Fly{

    @Override
    public void fly() {
        System.out.println("风筝迎风飞翔");
    }
}
class Test{
    public static void main(String[] args) {
        Fly fly =new Bat();
        fly.fly();
        Fly fly1=new AirPlane();
        fly1.fly();
        Fly fly2=new Kite();
        fly2.fly();
    }
}